package com.gitee.xmhzzz.component.rocketmq;

/**
 * 延迟等级
 *
 */
public enum DelayLevel
{
    DELAY_0S(0, "无延迟"),
    DELAY_1S(1, "延迟1s"),
    DELAY_5S(2, "延迟5s"),
    DELAY_10S(3, "延迟10s"),
    DELAY_30S(4, "延迟30s"),
    DELAY_1M(5, "延迟1m"),
    DELAY_2M(6, "延迟2m"),
    DELAY_3M(7, "延迟3m"),
    DELAY_4M(8, "延迟4m"),
    DELAY_5M(9, "延迟5m"),
    DELAY_6M(10, "延迟6m"),
    DELAY_7M(11, "延迟7m"),
    DELAY_8M(12, "延迟8m"),
    DELAY_9M(13, "延迟9m"),
    DELAY_10M(14, "延迟10m"),
    DELAY_20M(15, "延迟20m"),
    DELAY_30M(16, "延迟30m"),
    DELAY_1H(17, "延迟1h"),
    DELAY_2H(18, "延迟2h");

    private int val;

    private String desc;

    DelayLevel(int delayLevel, String desc)
    {
        this.val = delayLevel;
        this.desc = desc;
    }

    public int getVal()
    {
        return val;
    }

    public String getDesc()
    {
        return desc;
    }


}
